package com.common.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode
public class ListNode<T> {
    T val;
    ListNode<T> next;

    public ListNode(T x) {
        val = x;
        next = null;
    }

    @Override
    public String toString() {
        return "Val is: " + val;
    }
}
